//
//  FZYScrollView.h
//  NewiOSProject
//
//  Created by li on 2023/9/4.
//  Copyright © 2023 范智渊. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    FZYScrollViewPositionMin,
    FZYScrollViewPositionMiddle,
    FZYScrollViewPositionMax,
} ScrollViewPosition;

@class LayoutView;
@interface ScrollView : UIScrollView
@property(nonatomic, strong) LayoutView *rootStack;
@property(nonatomic, strong, nullable) NSLayoutConstraint *leftMargin;
@property(nonatomic, strong, nullable) NSLayoutConstraint *rightMargin;
@property(nonatomic, strong, nullable) NSLayoutConstraint *topMargin;
@property(nonatomic, strong, nullable) NSLayoutConstraint *bottomMargin;

-(void)scrollToItemCenter:(NSInteger)index offset:(CGPoint)offset animation: (BOOL)animation;
@end

NS_ASSUME_NONNULL_END
